home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / bbs / tmg107.zip / MAGIC.ZIP / FOREST.SCR < prev    next >
Text File  |  1997-04-11  |  11KB  |  406 lines

  1. @#DEFINE
  2.   CreatureFile FOREST.DAT
  3.   Set ^VR20 0
  4.   Location "fForest of Wolves"
  5. @#INSTALL
  6. `2Forest of Wolves
  7. This is the Script version of the Forest of Wolves.  Compare it with the
  8. version you can access from the Enter Realms menu.  (You shouldn't notice
  9. a difference)
  10. @#ITEMS
  11.   NAME  1 "`2Potion of Healing"
  12.   SCRID 1 "PofH-04091997-JO-N"
  13.   STAT1 1 0 0 2500 1 10
  14.   STAT2 1 1 1 0
  15. @#ITEM1_USE
  16.   Writeln "`3  You take a drink of the Potion of Healing and a warm fire shoots through"
  17.   Writeln "  your body.  It magically heals your wounds and completely refreshes you."
  18.   Set ^CS10 ^CS11
  19. @#ITEM1_USECOMBAT
  20.   Gosub USE
  21. @#ITEM1_IDENTIFY
  22.   Writeln "`3  The Potion of Healing will restore your Hit Points to Maximum when"
  23.   Writeln "  the potion is used."
  24.   Writeln "`9  (`%Heals all wounds`9)"
  25. @#ITEM1_LASTUSE
  26.   Writeln "`9  (`%The vial is now empty`9)"
  27. @#ITEM1_DROP
  28.   Writeln "`9  The Potion vanishes when it touches the ground."
  29. @#MONSTER
  30.   STATS 1 38 28 21 200 400 68 3
  31.   NAME  1 "Huge Grizzley Bear"
  32.   WNAME 1 "Big Black Paw"
  33.   ANAME 1 "Increadibly Thick Fur"
  34.   DEATH 1 "RRRRRRRRRRRRRRRRRrrrrrrrrrrrrrrrr..."
  35.   STATS 2 158 124 31 690 800 260 6
  36.   NAME  2 "Huge Grizzley Bear"
  37.   WNAME 2 "Big Black Paw"
  38.   ANAME 2 "Increadibly Thick Fur"
  39.   DEATH 2 "RRRRRRRRRRRRRRRRRrrrrrrrrrrrrrrrr..."
  40. @#Event1
  41.   Set ^VR03 400
  42.   Mult ^VR03 ^CS22
  43.   Random ^VR03 ^VR03
  44.   Writeln "`9  You find a sack containing ^VR03 gold pieces in it."
  45.   Add ^CS18 ^VR03
  46.   Pause
  47.   Writeln ""
  48.   Return
  49. @#Event2
  50.   Writeln "`9  You are walking through the forest, whne you are hit by a bolt of"
  51.   Writeln "  `1Blue`9 light.  It surrounds you, envelops you, and drains you of your"
  52.   Writeln "  Energy, but you can feel it making you tougher."
  53.   Random ^VR03 4
  54.   Writeln "`%  You gain `4^VR03`% defense points."
  55.   Add ^CS04 ^VR03
  56.   Set ^VR03 ^CS10
  57.   Random ^VR03 ^VR03
  58.   Add ^VR03 -1
  59.   If ^VR03 > 100
  60.     Set ^VR03 100
  61.   Endif
  62.   If ^VR03 > 0
  63.     Writeln "`%  You lose `4^VR03`% hit points."
  64.     Add ^CS10 -^VR03
  65.   Endif
  66.   Pause
  67.   Return
  68. @#Event3
  69.   Writeln "`9  You are walking through the forest, whne you are hit by a bolt of"
  70.   Writeln "  `4Red`9 light.  It surrounds you, envelops you, and drains you of your"
  71.   Writeln "  Energy, but you can feel it making you stronger."
  72.   Random ^VR03 4
  73.   Writeln "`%  You gain `4^VR03`% attack points."
  74.   Add ^CS03 ^VR03
  75.   Set ^VR03 ^CS10
  76.   Random ^VR03 ^VR03
  77.   Add ^VR03 -1
  78.   If ^VR03 > 100
  79.     Set ^VR03 100
  80.   Endif
  81.   If ^VR03 > 0
  82.     Writeln "`%  You lose `4^VR03`% hit points."
  83.     Add ^CS10 -^VR03
  84.   Endif
  85.   Pause
  86.   Return
  87. @#Event4
  88.   Writeln "`9  You are walking through the forest, whne you are hit by a bolt of"
  89.   Writeln "  `2Green`9 light.  It surrounds you, envelops you, and drains you of your"
  90.   Writeln "  Energy, but you can feel it making you more agile."
  91.   Random ^VR03 4
  92.   Writeln "`%  You gain `4^VR03`% damage reduction points."
  93.   Add ^CS05 ^VR03
  94.   Set ^VR03 ^CS10
  95.   Random ^VR03 ^VR03
  96.   Add ^VR03 -1
  97.   If ^VR03 > 100
  98.     Set ^VR03 100
  99.   Endif
  100.   If ^VR03 > 0
  101.     Writeln "`%  You lose `4^VR03`% hit points."
  102.     Add ^CS10 -^VR03
  103.   Endif
  104.   Pause
  105.   Return
  106. @#Event5
  107.   Writeln "`9  You find a gem partially hidden under a rock!"
  108.   Add ^CS20 1
  109.   Pause
  110.   Return
  111. @#Event6
  112.   Writeln "`9  You stumble across a large cave in the middle of the wilderness."
  113.   Writeln "`9  It is very dark, and smells pretty bad."
  114.   Writeln ""
  115.   DefaultCommand Y
  116.   Write "`9  Do you Enter? (`3Y`9/`3N`9) [`%^VR21`9] : `%"
  117.   ReadChar ^VR01
  118.   If ^VR01 == Y
  119.     Writeln "Yes."
  120.     Writeln ""
  121.     Writeln "`9  Entering the cave, you encounter a Huge Grizzley Bear!"
  122.     If ^CS22 <= 4
  123.       Combat ^GF29 Int 1
  124.       Set ^VR05 5
  125.       Set ^VR06 600
  126.     Endif
  127.     If ^CS22 > 4
  128.       Combat ^GF29 Int 2
  129.       Set ^VR05 8
  130.       Set ^VR06 1200
  131.     Endif
  132.     If ^GF29 == 1
  133.       Writeln "`c`%                         Searching the Cave :"
  134.       Writeln "`#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
  135.       Writeln "`9  After defeating the Grizzley Bear, you search around its cave."
  136.       Writeln "  You find the remains of many small animals, some remnants of fur,"
  137.       Writeln "  But eventually you find some things of value."
  138.       Writeln "`!  You find ^VR06 Gold and ^VR05 Gems!"
  139.       Writeln ""
  140.       Add ^CS18 ^VR06
  141.       Add ^CS20 ^VR05
  142.       Pause
  143.     Endif
  144.     Return
  145.   Endif
  146.   Writeln "No."
  147.   Writeln ""
  148.   Writeln "`9  You guess you'll never know what fortunes could lie in that cave."
  149.   Return
  150. @#Mail1
  151.   SetStr ^VR04 "`%Bank Notice :"
  152.   Random ^VR05 ^CS19
  153.   Mail ^CS01 ^VR04
  154. We regret to inform you that a mistake had been made in your favor.
  155. The error has been corrected, and the sum of ^VR05 has
  156. been removed from your balance.  We regret the error being made.
  157.   MailCommands
  158. Add ^CS19 -^VR05
  159.   EndMail
  160.   Return
  161. @#Mail2
  162.   SetStr ^VR04 "`%Bumbling Move!"
  163.   Set ^VR05 2
  164.   Set ^VR06 12
  165.   Mult ^VR05 ^CS22
  166.   Mult ^VR06 ^CS22
  167.   If ^VR06 > ^CS10
  168.     Set ^VR06 ^CS10
  169.     Add ^VR06 -1
  170.   Endif
  171.   Mail ^CS01 ^VR04
  172. On your way through town, you trip over your own feet and break your
  173. arm.  You realize that even though the healers can fix it, you will
  174. not be as strong as you once were.
  175. (You lose ^VR05 attack points)
  176. (You lose ^VR06 hit points due to pain)
  177.   MailCommands
  178. ADD ATT -^VR05
  179. ADD CHP -^VR06
  180.   EndMail
  181.   Return
  182. @#Mail3
  183.   SetStr ^VR04 "`%Good Fortune!"
  184.   Set ^VR05 ^CS22
  185.   Add ^VR05 2
  186.   Random ^VR05 ^VR05
  187.   Mail ^CS01 ^VR04
  188. On your way back to town, a large bird drops a sack at your feet and
  189. flies off.  Being curious, you open the sack to reveal
  190. ^VR05 gems!  All beautifully polished.
  191.   MailCommands
  192. ADD ^CS20 ^VR05
  193.   EndMail
  194.   Return
  195. @#Mail4
  196.   If ^CS12 > 0
  197.     Setstr ^VR04 "`%Strange Event!"
  198.     Random ^VR05 ^CS22
  199.     Mult ^VR05 2
  200.     Mail ^CS01 ^VR04
  201. On your way back to town, a shimmering green light shoots out of the sky
  202. striking your ^CS13.  It now feels energized.
  203. (Your weapon now has a +^VR05 bonus)
  204.     MailCommands
  205. Add ^CS03 ^VR05
  206. Add ^CS12 ^VR05
  207.     EndMail
  208.   Endif
  209.   Return
  210. @#Mail5
  211.   Set ^VR05 2000
  212.   Mult ^VR05 ^CS22
  213.   Mail ^CS01 `%Message from the Royal Family in Munich :
  214. We have heard of your deeds, and wish you the best of luck in saving
  215. Shamile.  Our treasurer has sent over a small gift of ^VR05 gold to aid you.
  216. (Due to their influence, you gain 4 charm and lose 6 shame)
  217.   MailCommands
  218. Add ^CS06 4
  219. Add ^CS07 -6
  220. Add ^CS18 ^VR05
  221.   EndMail
  222.   Return
  223. @#Event7
  224.   Writeln "`9  You stumble across a small, quaint well nestled deep in the forest."
  225.   Writeln "`9  It has a small wooden sign on it that says `3"Wishes : 1 gem"`9."
  226.   Writeln ""
  227.   DefaultCommand Y
  228.   Write "`9  Do you throw one in? (`3Y`9/`3N`9) [`%^VR21`9] : `%"
  229.   ReadChar ^VR01
  230.   If ^VR01 == Y
  231.     Writeln "Yes."
  232.     If ^CS20 >= 1
  233.       Add ^CS20 -1
  234.       Writeln "`9  Nothing apparently happens."
  235.       Random ^VR02 100
  236.       Add ^VR02 ^CS08
  237.       If ^VR02 <= 20
  238.         Set ^VR03 1
  239.       Endif
  240.       If ^VR02 >= 21
  241.         If ^VR02 <= 40
  242.           Set ^VR03 2
  243.         Endif
  244.       Endif
  245.       If ^VR02 >= 41
  246.         If ^VR02 <= 60
  247.           Set ^VR03 3
  248.         Endif
  249.       Endif
  250.       If ^VR02 >= 61
  251.         If ^VR02 <= 80
  252.           Set ^VR03 4
  253.         Endif
  254.       Endif
  255.       If ^VR02 >= 81
  256.         If ^VR02 <= 100
  257.           Set ^VR03 5
  258.         Endif
  259.       Endif
  260.       Gosub Mail^VR03
  261.       Return
  262.     Endif
  263.     Writeln ""
  264.     Writeln "  `9You don't have a `4GEM`9 to throw in!"
  265.     Return
  266.   Endif
  267.   Writeln "No."
  268.   Writeln ""
  269.   Writeln "`9  You realize you would just be throwing a gem away as wishes dont come true."
  270.   Return
  271. @#Event8
  272.   Writeln "`9  You curse your bad luck as you trip over an upturned tree root, but when"
  273.   Writeln "  you land face down in the mud, you are staring right at a 4-leaf clover."
  274.   Writeln "`%  You gain `21`% luck"
  275.   Add ^CS08 1
  276.   Pause
  277.   Return
  278. @#Event9
  279.   Writeln "`9  From out of nowhere, a large black cat streaks across your path."
  280.   Writeln "`%  You lose `21`% luck"
  281.   Add ^CS08 -1
  282.   Pause
  283.   Return
  284. @#Event10
  285.   SharedEvent 1
  286.   Pause
  287.   Return
  288. @#Event11
  289.   WriteBlock
  290. `9  You remember hearing the rumor about a new church being formed out in
  291. `9  the forest as you stumble upon a small wooden structure.  It looks like
  292. `9  new construction, but as you get near, you realize it is nothing more
  293. `9  than a blind for hunting deer and other animals.
  294. `9  You think to yourself that the rumors are untrue.
  295.   EndBlock
  296.   Return
  297. @#Event12
  298.   SharedEvent 3
  299.   Return
  300. @#Event13
  301.   Writeln "`9  You encounter an ugly hag, and when she sees that you are not repulsed by"
  302.   Writeln "`9  her appearance, she reaches into her bag and hands you a vial of liquid."
  303.   Item 1
  304.   Return
  305. @#SpecialEvent
  306.   Writeln "`c`%                             Special Event:"
  307.   Writeln "`#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
  308.   Random ^VR02 13
  309.   Gosub Event^VR02
  310.   ReDispMenu FALSE
  311.   Return
  312. @#Fight
  313.   If ^CS26 >= 1
  314.     MonsterAvailable ^GF28
  315.     If ^GF28 == 1
  316.       Random ^VR02 100
  317.       Add ^VR02 -^CS08
  318.       If ^VR02 < 20
  319.         Gosub SpecialEvent
  320.         ReDispMenu FALSE
  321.         Return
  322.       Endif
  323.       Combat ^GF29 Ext
  324.       Add ^CS26 -1
  325.       Return
  326.     Endif
  327.     Writeln ""
  328.     Writeln "`9  Sorry, there is `4NOTHING`9 here for you to fight."
  329.     ReDispMenu FALSE
  330.     Return
  331.   Endif
  332.   Writeln ""
  333.   Writeln "`9  Sorry, the forest is `4EMPTY`9.  Perhaps you should return tomorrow."
  334.   ReDispMenu FALSE
  335.   Return
  336. @#Deposit
  337.   Writeln ""
  338.   Writeln "  `3You wander over to a nearby tree, and while nobody is looking, pull a"
  339.   Writeln "  'special' branch and a panel opens up.  You put your money belt in, close"
  340.   Writeln "  the panel and hear the whirring noise.  After a few seconds, you open the"
  341.   Writeln "  panel and retrieve your money belt and receipt."
  342.   Add ^CS19 ^CS18
  343.   Set ^CS18 0
  344.   ReDispMenu FALSE
  345.   Return
  346. @#FOREST_MENU
  347. SHL
  348. `c                           `%Forest of Wolves:
  349. `#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  350. `9  You tread lightly and quickly through the woods, almost stalking your
  351. `9  prey.  You see small rabbits and squirrels, but they refuse to go toe-to
  352. `9  toe with you, so you know you need to look for larger prey.  What do you
  353. `9  wish to do?
  354. `9
  355. `3  (`#^MC01`3)earch for larger prey.
  356. `3  (`#^MC02`3)ealers temple.
  357. `3  (`#^MC03`3)eave this scary place.
  358. @#MAIN
  359.   Menu Forest_menu
  360.   Writeln ""
  361.   Write "`9   HP`%: `9(`%^CS10 `9/`% ^CS11`9)   Fights Left `%: ^CS26"
  362.   Writeln "    `9Gold `%: &CS18     `9Gems `%: &CS20"
  363.   Writeln ""
  364.   Writeln "   `2Forest of Wolves : "
  365.   DefaultCommand L
  366.   If ^CS26 >= 1
  367.     DefaultCommand S
  368.   Endif
  369.   If ^GF29 == 2
  370.     DefaultCommand L
  371.   Endif
  372.   ReadMenuCommands ^VR02
  373.   Writeln "^VR02"
  374.   If ^VR02 == L
  375.     Halt
  376.   Endif
  377.   If ^VR02 == S
  378.     Gosub Fight
  379.   Endif
  380.   If ^VR02 == H
  381.     Healer
  382.     ReDispMenu TRUE
  383.   Endif
  384.   If ^VR02 == F
  385.     FindPlayers
  386.   Endif
  387.   If ^VR02 == R
  388.     DisplayRanks
  389.   Endif
  390.   If ^VR02 == V
  391.     DisplayStats
  392.   Endif
  393.   If ^VR02 == =
  394.     DisplayCreatures
  395.   Endif
  396.   If ^VR02 == D
  397.     Gosub Deposit
  398.   Endif
  399.   If ^VR02 == ?
  400.     DisplayMenu
  401.   Endif
  402.   If ^VR02 == Y
  403.     Inventory
  404.   Endif
  405. @#
  406.